package com.kwt.learn;

import java.util.HashMap;
import java.util.stream.IntStream;

public class Main {
    public static void main(String[] args) {
        HashMap<String, Double> hashMap = new HashMap();
        double sum = IntStream.range(0, 5)
                .mapToDouble(e -> hashMap.get(e) == null ? 0 : hashMap.get(e))
                .filter(e -> !Double.isNaN(e))
                .sum();//下级
        System.out.println(sum);
       new Main().run();
    }

    public final void run(){
        System.out.println("nihao");
    }
}
